package com.panshi.hujin2.httpcrawler.domain.outlook;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 微软邮件实体
 * @Author: wangxl
 * @Date: 2018/11/22 9:10
 */
@Data
@NoArgsConstructor
public class OutlookEmailDo {
    //邮件标题
    private String subject;
    //邮件内容类型
    private String bodyType;
    //邮件内容体
    private String bodyValue;
    //邮件附件ID
    private List<OutlookAttachmentDo> attachmentList;

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getBodyType() {
        return bodyType;
    }

    public void setBodyType(String bodyType) {
        this.bodyType = bodyType;
    }

    public String getBodyValue() {
        return bodyValue;
    }

    public void setBodyValue(String bodyValue) {
        this.bodyValue = bodyValue;
    }

    public List<OutlookAttachmentDo> getAttachmentList() {
        return attachmentList;
    }

    public void setAttachmentList(List<OutlookAttachmentDo> attachmentList) {
        this.attachmentList = attachmentList;
    }

    public OutlookEmailDo(String subject, String bodyType, String bodyValue, List<OutlookAttachmentDo> attachmentList) {
        this.subject = subject;
        this.bodyType = bodyType;
        this.bodyValue = bodyValue;
        this.attachmentList = attachmentList;
    }

    @Override
    public String toString() {
        return "OutlookEmailDo{" +
                "subject='" + subject + '\'' +
                ", bodyType='" + bodyType + '\'' +
                ", bodyValue='" + bodyValue + '\'' +
                ", attachmentList=" + attachmentList +
                '}';
    }
}
